<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/public/taglib.jsp"%>
<script type="text/javascript" src="<%=basePath%>js/qualify/zizhisel.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jobsel/job.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/system.css" media="all">

    
    <form class="layui-form clefix customersearcheform" action="/getmanageurl" method="post" id="customerlistform">
    
    	<!-- 只有在state!=4的情况下才会显示搜索框，个人比企业多一个身份证 -->
    	
    
    		<div class="layui-form-item">
				<div class="layui-input-block">
					<input type="text" name="keyWord" id="keyWord" lay-verify="title" autocomplete="off" placeholder="输入关键词后搜索" class="layui-input" value="${pager.params.KeyWord}" >
				</div>
			</div>
			<div class="layui-form-item" >
				<div class="layui-input-inline"  style="width:10%;"   >
					<input type="text" name="address" id="address"    autocomplete="off" placeholder="输入地区" class="layui-input" value="${pager.params.address}" >
				</div>
			</div>
			<c:if test="${customertype==0}">
			 <div class="layui-form-item">
                <div class="layui-input-inline" style="width:100px;">
                    <input type="text" style="width:100px;" name="sttime" id="sttime"  readonly="readonly" placeholder="到期起始时间" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})" value="${pager.params.sttime}">
                </div>
            </div>
             <div class="layui-form-item">
                <div class="layui-input-inline" style="width:100px;">
                    <input type="text" style="width:100px;" name="entime" id="entime"  readonly="readonly" placeholder="到期结束时间" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})" value="${pager.params.entime}">
                </div>
            </div>
			</c:if>
			<%-- <div class="layui-form-item">
				<div class="layui-input-inline">
					<select name="province" id="province" lay-filter="province" class="provinceclass" value="${pager.params.province}">
						<option value="-1">请选择省</option>
						<c:forEach var="prov" items="${province}" varStatus="p1">
	                       	<option value="${prov.id}" <c:if test="${pager.params.province==prov.id}">selected</c:if> >${prov.provincename}</option>
	                     </c:forEach>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="city" id="city"  lay-filter="city" value="${pager.params.city}"<c:if test="${cuinfo.id>0}">  disabled="disabled"</c:if>>
		            	<option value="">请选择市</option>
		            </select>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
					<input name="category" id="category" type="hidden" value='${pager.params.category}'>
                	<input type="text" name="zizhiType" id="zizhiType" class="layui-input" placeholder="点这里选证书类型">
				</div>
			</div> --%>
			<div class="layui-form-item">
				<div class="layui-input-inline ">
						<c:if test="${customerstate != 4}">
								<select name="state" id="states" value="${pager.params.state}">
								   <option value="">成熟等级</option>
									<option value="-1">全部</option>
									<option value="0" <c:if test="${pager.params.state==0}">selected</c:if>>最新资源</option> 
									<c:if test="${customertype == 1 }">
									<option value="1" <c:if test="${pager.params.state==1}">selected</c:if>>意向不明</option> 
					                      <option value="6" <c:if test="${pager.params.state==6}">selected</c:if>>意向明确</option>
					                      <option value="5" <c:if test="${pager.params.state==5}">selected</c:if>>意向强烈</option>
					                      <option value="7" <c:if test="${pager.params.state==7}">selected</c:if>>合作客户</option>
									</c:if>
									<c:if test="${customertype == 0 }">
										<option value="1" <c:if test="${pager.params.state==1}">selected</c:if>>意向不明</option> 
					                        <option value="2" <c:if test="${pager.params.state==2}">selected</c:if>>意向明确</option>
					                        <option value="3" <c:if test="${pager.params.state==3}">selected</c:if>>意向强烈</option>
					                        <option value="7" <c:if test="${pager.params.state==7}">selected</c:if>>合作客户</option>
									</c:if>
								</select>
						</c:if>
					  <c:if test="${customerstate == 4}">
					  		<select name="state" id="states" value="${pager.params.state}">
									<option value="4">公共资源</option>
								</select>
					  </c:if>
					
				</div>
			</div>
				<div class="layui-form-item">
				<div class="layui-input-inline ">
					<select name="lxstate" id="lxstate">
					   <option value="">是否联系</option>
						<option value="-1">全部</option>
                		<option value="0" <c:if test="${pager.params.lxstate==0}">selected</c:if>>未联系</option>
                    	<option value="1" <c:if test="${pager.params.lxstate==1}">selected</c:if>>已联系</option>
                	</select>
				</div>
				 <div class="layui-input-inline">
	                   <select name="source" id="source">
	                       <option value="">客户来源</option>
	                       <option value="0">全部</option>
	                       <dic:cf type="2" name="customer_source" value="${pager.params.source}"/>
	                   </select>
	             </div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-inline ">
					<select name="sort" id="sorts">
                		<option value="0" <c:if test="${pager.params.sort==0 || pager.params.sort==null || fn:length(pager.params.sort) > 0}">selected</c:if>>时间倒序</option>
                    	<option value="1" <c:if test="${pager.params.sort==1}">selected</c:if>>时间正序</option>
                	</select>
				</div>
			</div>
			<c:if test="${customerstate != 4}">
			    <div class="layui-form-item">
					<div class="layui-input-inline ">
						<select name="boutique" id="boutique"> 
	                		<option value="">资源状态</option>
						    <option value="-1" <c:if test="${pager.params.boutique==null}">selected</c:if>>全部</option>
	                		<option value="0" <c:if test="${pager.params.boutique==0}">selected</c:if>>普通资源</option>
	                    	<option value="1" <c:if test="${pager.params.boutique==1}">selected</c:if>>精品资源</option>
	                	</select>
					</div>
				</div>
			</c:if>
		
		<div class="layui-form-item">
			<input name="skipToPage" id="skipToPage"  type="hidden" value="${pager.pageNo}">
			<input type="hidden" id="pageNo" name="pageNo" value="${pager.pageNo}">
			<input type="hidden" id="totalPage" name="totalPage" value="${pager.totalPages}">
			<input type="hidden" value="${customertype}" id="customertype" name="type">
			<input type="hidden" value="${customerstate}" id="customerstate" name="state">
		
				<button class="layui-btn customersearchbtn" lay-submit="" lay-filter="searchform"><i class="layui-icon layui-unselect layui-tab-close">&#xe615;<!-- &#xe642; --></i>搜索资源</button>
				<button class="layui-btn searchbtnclean" type="button" lay-submit="" lay-filter="searchform">清空搜索</button>
				<c:if test="${customerstate != 4}"></c:if>
		</div>
	</form>
	
	
	
	
	
	